<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>LCV Framework: cam-target.c-Dateireferenz</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Erzeugt von Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Hauptseite</span></a></li>
    <li><a href="classes.html"><span>Datenstrukturen</span></a></li>
    <li class="current"><a href="files.html"><span>Dateien</span></a></li>
  </ul>
</div>
<h1>cam-target.c-Dateireferenz</h1>Implementiert die Kamera-Schnittstelle auf dem Zielsystem (LCV-Board). <a href="#_details">Mehr ...</a>
<p>
<code>#include &lt;sys/ioctl.h&gt;</code><br>
<code>#include &lt;stdio.h&gt;</code><br>
<code>#include &lt;stdlib.h&gt;</code><br>
<code>#include &lt;fcntl.h&gt;</code><br>
<code>#include &lt;linux/ioctl.h&gt;</code><br>
<code>#include &lt;errno.h&gt;</code><br>
<code>#include &lt;unistd.h&gt;</code><br>
<code>#include &lt;getopt.h&gt;</code><br>
<code>#include &lt;string.h&gt;</code><br>
<code>#include &lt;strings.h&gt;</code><br>
<code>#include &quot;<a class="el" href="cam_8h-source.html">cam.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="cam-reg-config_8h-source.html">cam-reg-config.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="i2c_8h-source.html">i2c.h</a>&quot;</code><br>
<code>#include &quot;bayer-lcv.h&quot;</code><br>
<code>#include &quot;<a class="el" href="bmp-header_8h-source.html">bmp-header.h</a>&quot;</code><br>

<p>
<a href="cam-target_8c-source.html">gehe zum Quellcode dieser Datei</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Funktionen</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="cam-target_8c.html#3873992b3c53df8c894803971676954e">lcv_cam_registers_buffer_init</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Buffer initialisieren.  <a href="#3873992b3c53df8c894803971676954e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="cam-target_8c.html#593428c523e89b29b7b724e6120e289f">Raw10To8bit</a> (unsigned char *pic, int size)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structlcv__picture.html">lcv_picture</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="cam-target_8c.html#abd5b4037cc6f83069eaf5718d5ed872">lcv_capture_frame</a> (const char *filename)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Holt ein Bild von der Kamera.  <a href="#abd5b4037cc6f83069eaf5718d5ed872"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structlcv__picture.html">lcv_picture</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="cam-target_8c.html#dc4ab6ea6f9ed6dd991488af90fade92">lcv_capture_region</a> (const unsigned short start_x, const unsigned short start_y, const unsigned short width, const unsigned short height, const char *filename)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Holt ein Bildausschnutt von der Kamera.  <a href="#dc4ab6ea6f9ed6dd991488af90fade92"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="cam-target_8c.html#075f93aa7cc073b84b2f80d2818ee86c">lcv_config_write</a> (const unsigned int setting, const unsigned short value)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Schreibt eine Registerkonfiguration.  <a href="#075f93aa7cc073b84b2f80d2818ee86c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned short&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="cam-target_8c.html#672e3188bbcf535ff2e06d8539a9c13d">lcv_config_read</a> (const unsigned int setting)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Liest den Wert einer Registerkonfiguration.  <a href="#672e3188bbcf535ff2e06d8539a9c13d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="cam-target_8c.html#280d093e6ddc853845445c45449fff6c">lcv_regs_to_default</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Setzt alleRegister auf ihren Standardwert.  <a href="#280d093e6ddc853845445c45449fff6c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="cam-target_8c.html#07a0b332c7bbc5d99dabef97da819574">lcv_reset_capture_frame</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Setzt die 4 für die Bildregion verantwortlichen Register auf den Standardwert zurück.  <a href="#07a0b332c7bbc5d99dabef97da819574"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="cam-target_8c.html#f73241718d1a517f6e12e4ee474b5c30">lcv_reg_buffering</a> (const unsigned char enable)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Aktiviert bzw.  <a href="#f73241718d1a517f6e12e4ee474b5c30"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Variablen</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned short&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="cam-target_8c.html#840debf3236acd5f6065c96fda376f0c">cam_registers_buffer_cnt</a> = sizeof(<a class="el" href="cam-reg-config_8h.html#29a2d67ac8fcb996d490c3dfa151b710">cam_reg_config</a>) / sizeof(*<a class="el" href="cam-reg-config_8h.html#29a2d67ac8fcb996d490c3dfa151b710">cam_reg_config</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Grösse des Buffers.  <a href="#840debf3236acd5f6065c96fda376f0c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned short&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="cam-target_8c.html#a911f9f1314ef1bc68e686cc870cdabe">cam_registers_buffer</a> [sizeof(<a class="el" href="cam-reg-config_8h.html#29a2d67ac8fcb996d490c3dfa151b710">cam_reg_config</a>)/sizeof(*<a class="el" href="cam-reg-config_8h.html#29a2d67ac8fcb996d490c3dfa151b710">cam_reg_config</a>)]</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Bufferarray für Kameraregister.  <a href="#a911f9f1314ef1bc68e686cc870cdabe"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="cam-target_8c.html#f6fd4975878759cf79c88e5e01faf8be">cam_registers_buffer_initialized</a> = FALSE</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Buffer initialisiert.  <a href="#f6fd4975878759cf79c88e5e01faf8be"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="cam-target_8c.html#1f32b4aea1ffaa63f852d412d73323b7">enable_buffer</a> = TRUE</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Buffer aktivieren, deaktivieren.  <a href="#1f32b4aea1ffaa63f852d412d73323b7"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Ausführliche Beschreibung</h2>
Implementiert die Kamera-Schnittstelle auf dem Zielsystem (LCV-Board). 
<p>
<dl class="author" compact><dt><b>Autor:</b></dt><dd>Daniel Kummer, Sebastian Kummer </dd></dl>
<dl class="date" compact><dt><b>Datum:</b></dt><dd>Donnerstag, Dezember 12, 2007 </dd></dl>
<dl class="version" compact><dt><b>Version:</b></dt><dd>1.0 </dd></dl>

<p>Definiert in Datei <a class="el" href="cam-target_8c-source.html">cam-target.c</a>.</p>
<hr><h2>Dokumentation der Funktionen</h2>
<a class="anchor" name="3873992b3c53df8c894803971676954e"></a><!-- doxytag: member="cam-target.c::lcv_cam_registers_buffer_init" ref="3873992b3c53df8c894803971676954e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void lcv_cam_registers_buffer_init           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Buffer initialisieren. 
<p>

<p>Definiert in Zeile <a class="el" href="cam-target_8c-source.html#l00333">333</a> der Datei <a class="el" href="cam-target_8c-source.html">cam-target.c</a>.</p>

<p>Benutzt <a class="el" href="cam-reg-config_8h-source.html#l00019">cam_reg_config</a>, <a class="el" href="cam-target_8c-source.html#l00035">cam_registers_buffer_cnt</a>, <a class="el" href="lcv-structs_8h-source.html#l00023">lcv_reg_config::default_val</a> und <a class="el" href="lcv-config_8h-source.html#l00022">TRUE</a>.</p>

<p>Wird benutzt von <a class="el" href="cam-target_8c-source.html#l00290">lcv_config_read()</a>.</p>

</div>
</div><p>
<a class="anchor" name="abd5b4037cc6f83069eaf5718d5ed872"></a><!-- doxytag: member="cam-target.c::lcv_capture_frame" ref="abd5b4037cc6f83069eaf5718d5ed872" args="(const char *filename)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structlcv__picture.html">lcv_picture</a> lcv_capture_frame           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>filename</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Holt ein Bild von der Kamera. 
<p>
<dl compact><dt><b>Parameter:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>filename</em>&nbsp;</td><td>Dateiname des Bildes (wird auf dem Zielsystem ignoriert) </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Rückgabe:</b></dt><dd>Bild </dd></dl>

<p>Definiert in Zeile <a class="el" href="cam-target_8c-source.html#l00071">71</a> der Datei <a class="el" href="cam-target_8c-source.html">cam-target.c</a>.</p>

<p>Benutzt <a class="el" href="bmp-header_8h-source.html#l00026">bmphead_bgr</a>, <a class="el" href="cam-config_8h-source.html#l00018">CAM_DEVICE</a>, <a class="el" href="cam-reg-config_8h-source.html#l00019">cam_reg_config</a>, <a class="el" href="lcv-structs_8h-source.html#l00047">lcv_picture::data</a>, <a class="el" href="lcv-structs_8h-source.html#l00050">lcv_picture::height</a>, <a class="el" href="lcv-structs_8h-source.html#l00035">IMG_BGR</a>, <a class="el" href="cam-linux32_8c-source.html#l00183">lcv_config_read()</a>, <a class="el" href="log_8c-source.html#l00082">lcv_log_error()</a>, <a class="el" href="lcv-structs_8h-source.html#l00048">lcv_picture::length</a>, <a class="el" href="cam-target_8c-source.html#l00057">Raw10To8bit()</a>, <a class="el" href="cam-config_8h-source.html#l00032">REG_WINDOW_HEIGHT</a>, <a class="el" href="cam-config_8h-source.html#l00033">REG_WINDOW_WIDTH</a>, <a class="el" href="lcv-structs_8h-source.html#l00051">lcv_picture::type</a> und <a class="el" href="lcv-structs_8h-source.html#l00049">lcv_picture::width</a>.</p>

</div>
</div><p>
<a class="anchor" name="dc4ab6ea6f9ed6dd991488af90fade92"></a><!-- doxytag: member="cam-target.c::lcv_capture_region" ref="dc4ab6ea6f9ed6dd991488af90fade92" args="(const unsigned short start_x, const unsigned short start_y, const unsigned short width, const unsigned short height, const char *filename)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structlcv__picture.html">lcv_picture</a> lcv_capture_region           </td>
          <td>(</td>
          <td class="paramtype">const unsigned short&nbsp;</td>
          <td class="paramname"> <em>start_x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned short&nbsp;</td>
          <td class="paramname"> <em>start_y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned short&nbsp;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned short&nbsp;</td>
          <td class="paramname"> <em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>filename</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Holt ein Bildausschnutt von der Kamera. 
<p>
<dl compact><dt><b>Parameter:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>start_x</em>&nbsp;</td><td>Die erste X Koordinate der Region </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>start_y</em>&nbsp;</td><td>Die erste Y Koordinate der Region </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>Breite der Region </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height</em>&nbsp;</td><td>Höhe der Region </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>filename</em>&nbsp;</td><td>Dateiname (Wird auf dem Zielsystem ignoriert) </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Rückgabe:</b></dt><dd>Bild </dd></dl>

<p>Definiert in Zeile <a class="el" href="cam-target_8c-source.html#l00146">146</a> der Datei <a class="el" href="cam-target_8c-source.html">cam-target.c</a>.</p>

<p>Benutzt <a class="el" href="cam-reg-config_8h-source.html#l00019">cam_reg_config</a>, <a class="el" href="cam-linux32_8c-source.html#l00043">lcv_capture_frame()</a>, <a class="el" href="cam-linux32_8c-source.html#l00183">lcv_config_read()</a>, <a class="el" href="cam-linux32_8c-source.html#l00156">lcv_config_write()</a>, <a class="el" href="log_8c-source.html#l00082">lcv_log_error()</a>, <a class="el" href="cam-config_8h-source.html#l00030">REG_COLUMN_START</a>, <a class="el" href="cam-config_8h-source.html#l00031">REG_ROW_START</a>, <a class="el" href="cam-config_8h-source.html#l00032">REG_WINDOW_HEIGHT</a> und <a class="el" href="cam-config_8h-source.html#l00033">REG_WINDOW_WIDTH</a>.</p>

</div>
</div><p>
<a class="anchor" name="672e3188bbcf535ff2e06d8539a9c13d"></a><!-- doxytag: member="cam-target.c::lcv_config_read" ref="672e3188bbcf535ff2e06d8539a9c13d" args="(const unsigned int setting)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned short lcv_config_read           </td>
          <td>(</td>
          <td class="paramtype">const unsigned int&nbsp;</td>
          <td class="paramname"> <em>setting</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Liest den Wert einer Registerkonfiguration. 
<p>
<dl class="return" compact><dt><b>Rückgabe:</b></dt><dd>Registerwert </dd></dl>

<p>Definiert in Zeile <a class="el" href="cam-target_8c-source.html#l00290">290</a> der Datei <a class="el" href="cam-target_8c-source.html">cam-target.c</a>.</p>

<p>Benutzt <a class="el" href="lcv-structs_8h-source.html#l00020">lcv_reg_config::addr</a>, <a class="el" href="cam-config_8h-source.html#l00024">CAM_DEV_ID</a>, <a class="el" href="cam-config_8h-source.html#l00023">CAM_I2C_DEVICE</a>, <a class="el" href="cam-reg-config_8h-source.html#l00019">cam_reg_config</a>, <a class="el" href="cam-reg-config_8h-source.html#l00082">cam_registers_cnt</a>, <a class="el" href="cam-target_8c-source.html#l00333">lcv_cam_registers_buffer_init()</a>, <a class="el" href="i2c_8c-source.html#l00096">lcv_i2c_read_register()</a>, <a class="el" href="log_8c-source.html#l00089">lcv_log_warning()</a> und <a class="el" href="lcv-config_8h-source.html#l00022">TRUE</a>.</p>

</div>
</div><p>
<a class="anchor" name="075f93aa7cc073b84b2f80d2818ee86c"></a><!-- doxytag: member="cam-target.c::lcv_config_write" ref="075f93aa7cc073b84b2f80d2818ee86c" args="(const unsigned int setting, const unsigned short value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char lcv_config_write           </td>
          <td>(</td>
          <td class="paramtype">const unsigned int&nbsp;</td>
          <td class="paramname"> <em>setting</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned short&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Schreibt eine Registerkonfiguration. 
<p>
<dl compact><dt><b>Parameter:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>setting</em>&nbsp;</td><td>Einstellung (Registeradresse) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>Wert </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Rückgabe:</b></dt><dd>Erfolgsmeldung (positiv), bzw. Fehlernummer (negativ) </dd></dl>

<p>Definiert in Zeile <a class="el" href="cam-target_8c-source.html#l00256">256</a> der Datei <a class="el" href="cam-target_8c-source.html">cam-target.c</a>.</p>

<p>Benutzt <a class="el" href="lcv-structs_8h-source.html#l00020">lcv_reg_config::addr</a>, <a class="el" href="cam-config_8h-source.html#l00024">CAM_DEV_ID</a>, <a class="el" href="cam-config_8h-source.html#l00023">CAM_I2C_DEVICE</a>, <a class="el" href="cam-reg-config_8h-source.html#l00019">cam_reg_config</a>, <a class="el" href="cam-reg-config_8h-source.html#l00082">cam_registers_cnt</a>, <a class="el" href="lcv-config_8h-source.html#l00031">ERROR_ILLEGAL_SETTING</a>, <a class="el" href="lcv-config_8h-source.html#l00030">ERROR_ILLEGAL_VALUE</a>, <a class="el" href="i2c_8c-source.html#l00053">lcv_i2c_write_register()</a>, <a class="el" href="log_8c-source.html#l00089">lcv_log_warning()</a>, <a class="el" href="lcv-structs_8h-source.html#l00022">lcv_reg_config::max_val</a>, <a class="el" href="lcv-structs_8h-source.html#l00021">lcv_reg_config::min_val</a> und <a class="el" href="lcv-config_8h-source.html#l00022">TRUE</a>.</p>

</div>
</div><p>
<a class="anchor" name="f73241718d1a517f6e12e4ee474b5c30"></a><!-- doxytag: member="cam-target.c::lcv_reg_buffering" ref="f73241718d1a517f6e12e4ee474b5c30" args="(const unsigned char enable)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void lcv_reg_buffering           </td>
          <td>(</td>
          <td class="paramtype">const unsigned char&nbsp;</td>
          <td class="paramname"> <em>enable</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Aktiviert bzw. 
<p>
deaktiviert das Softwaremässige Puffering der Register. Es empfiehlt sich das Buffering auf Targetsystemen mit mehr als einem gleichzeitig laufenden Bildverarbeitungsprogramm zu deaktivieren. Auf dem Hostsystem ist Buffering nicht implementiert. Standardmässig ist der Buffer aktiviert. <dl compact><dt><b>Parameter:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>enable</em>&nbsp;</td><td>Aktiviert bzw. deaktiviert Buffering </td></tr>
  </table>
</dl>

<p>Definiert in Zeile <a class="el" href="cam-target_8c-source.html#l00345">345</a> der Datei <a class="el" href="cam-target_8c-source.html">cam-target.c</a>.</p>

</div>
</div><p>
<a class="anchor" name="280d093e6ddc853845445c45449fff6c"></a><!-- doxytag: member="cam-target.c::lcv_regs_to_default" ref="280d093e6ddc853845445c45449fff6c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char lcv_regs_to_default           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Setzt alleRegister auf ihren Standardwert. 
<p>
<dl class="return" compact><dt><b>Rückgabe:</b></dt><dd>Erfolgsmeldung (positiv), bzw. Fehlernummer (negativ) </dd></dl>

<p>Definiert in Zeile <a class="el" href="cam-target_8c-source.html#l00316">316</a> der Datei <a class="el" href="cam-target_8c-source.html">cam-target.c</a>.</p>

<p>Benutzt <a class="el" href="cam-reg-config_8h-source.html#l00019">cam_reg_config</a>, <a class="el" href="cam-reg-config_8h-source.html#l00082">cam_registers_cnt</a>, <a class="el" href="cam-linux32_8c-source.html#l00156">lcv_config_write()</a> und <a class="el" href="lcv-config_8h-source.html#l00022">TRUE</a>.</p>

</div>
</div><p>
<a class="anchor" name="07a0b332c7bbc5d99dabef97da819574"></a><!-- doxytag: member="cam-target.c::lcv_reset_capture_frame" ref="07a0b332c7bbc5d99dabef97da819574" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void lcv_reset_capture_frame           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Setzt die 4 für die Bildregion verantwortlichen Register auf den Standardwert zurück. 
<p>

<p>Definiert in Zeile <a class="el" href="cam-target_8c-source.html#l00325">325</a> der Datei <a class="el" href="cam-target_8c-source.html">cam-target.c</a>.</p>

<p>Benutzt <a class="el" href="cam-reg-config_8h-source.html#l00019">cam_reg_config</a>, <a class="el" href="cam-linux32_8c-source.html#l00156">lcv_config_write()</a>, <a class="el" href="cam-config_8h-source.html#l00030">REG_COLUMN_START</a>, <a class="el" href="cam-config_8h-source.html#l00031">REG_ROW_START</a>, <a class="el" href="cam-config_8h-source.html#l00032">REG_WINDOW_HEIGHT</a> und <a class="el" href="cam-config_8h-source.html#l00033">REG_WINDOW_WIDTH</a>.</p>

</div>
</div><p>
<a class="anchor" name="593428c523e89b29b7b724e6120e289f"></a><!-- doxytag: member="cam-target.c::Raw10To8bit" ref="593428c523e89b29b7b724e6120e289f" args="(unsigned char *pic, int size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Raw10To8bit           </td>
          <td>(</td>
          <td class="paramtype">unsigned char *&nbsp;</td>
          <td class="paramname"> <em>pic</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>size</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definiert in Zeile <a class="el" href="cam-target_8c-source.html#l00057">57</a> der Datei <a class="el" href="cam-target_8c-source.html">cam-target.c</a>.</p>

<p>Wird benutzt von <a class="el" href="cam-target_8c-source.html#l00071">lcv_capture_frame()</a>.</p>

</div>
</div><p>
<hr><h2>Variablen-Dokumentation</h2>
<a class="anchor" name="a911f9f1314ef1bc68e686cc870cdabe"></a><!-- doxytag: member="cam-target.c::cam_registers_buffer" ref="a911f9f1314ef1bc68e686cc870cdabe" args="[sizeof(cam_reg_config)/sizeof(*cam_reg_config)]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned short <a class="el" href="cam-target_8c.html#a911f9f1314ef1bc68e686cc870cdabe">cam_registers_buffer</a>[sizeof(<a class="el" href="cam-reg-config_8h.html#29a2d67ac8fcb996d490c3dfa151b710">cam_reg_config</a>)/sizeof(*<a class="el" href="cam-reg-config_8h.html#29a2d67ac8fcb996d490c3dfa151b710">cam_reg_config</a>)]          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Bufferarray für Kameraregister. 
<p>

<p>Definiert in Zeile <a class="el" href="cam-target_8c-source.html#l00040">40</a> der Datei <a class="el" href="cam-target_8c-source.html">cam-target.c</a>.</p>

</div>
</div><p>
<a class="anchor" name="840debf3236acd5f6065c96fda376f0c"></a><!-- doxytag: member="cam-target.c::cam_registers_buffer_cnt" ref="840debf3236acd5f6065c96fda376f0c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned short <a class="el" href="cam-target_8c.html#840debf3236acd5f6065c96fda376f0c">cam_registers_buffer_cnt</a> = sizeof(<a class="el" href="cam-reg-config_8h.html#29a2d67ac8fcb996d490c3dfa151b710">cam_reg_config</a>) / sizeof(*<a class="el" href="cam-reg-config_8h.html#29a2d67ac8fcb996d490c3dfa151b710">cam_reg_config</a>)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Grösse des Buffers. 
<p>

<p>Definiert in Zeile <a class="el" href="cam-target_8c-source.html#l00035">35</a> der Datei <a class="el" href="cam-target_8c-source.html">cam-target.c</a>.</p>

<p>Wird benutzt von <a class="el" href="cam-target_8c-source.html#l00333">lcv_cam_registers_buffer_init()</a>.</p>

</div>
</div><p>
<a class="anchor" name="f6fd4975878759cf79c88e5e01faf8be"></a><!-- doxytag: member="cam-target.c::cam_registers_buffer_initialized" ref="f6fd4975878759cf79c88e5e01faf8be" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned char <a class="el" href="cam-target_8c.html#f6fd4975878759cf79c88e5e01faf8be">cam_registers_buffer_initialized</a> = FALSE          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Buffer initialisiert. 
<p>

<p>Definiert in Zeile <a class="el" href="cam-target_8c-source.html#l00045">45</a> der Datei <a class="el" href="cam-target_8c-source.html">cam-target.c</a>.</p>

</div>
</div><p>
<a class="anchor" name="1f32b4aea1ffaa63f852d412d73323b7"></a><!-- doxytag: member="cam-target.c::enable_buffer" ref="1f32b4aea1ffaa63f852d412d73323b7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned char <a class="el" href="cam-target_8c.html#1f32b4aea1ffaa63f852d412d73323b7">enable_buffer</a> = TRUE          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Buffer aktivieren, deaktivieren. 
<p>

<p>Definiert in Zeile <a class="el" href="cam-target_8c-source.html#l00050">50</a> der Datei <a class="el" href="cam-target_8c-source.html">cam-target.c</a>.</p>

</div>
</div><p>
<hr size="1"><address style="text-align: right;"><small>Erzeugt am Wed Dec 19 16:38:17 2007 für LCV Framework von&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
</body>
</html>
